package com.mikey.function;

import java.util.function.Supplier;

/**
 * @author :Mikey
 * @description :
 * @create :2022-09-22 11:06:00
 */
public class Demo3 {
    public static void main(String[] args) {
        Supplier<Integer> supplier = new Supplier<Integer>() {
            @Override
            public Integer get() {
                return 1024;
            }
        };
        Supplier<Integer> supplier1=()->{return 1024;};
        System.out.println(supplier1.get());
    }
}
